<!--begin box search -->
<div class="quick-search">
    <div class="empty-title">
        <h3><i class="icon-advsearch"></i>Tìm kiếm nâng cao</h3>
        <div class="Options">
            <a href="#">Thu gọn [ - ]</a>
        </div>
    </div>
    <!-- End Empty Title -->
    <div class="form-search clearfix">
        <form method="POST" action="<?php echo Link::build('product/searchproduct'); ?>">
            <input type="text" style="width: 335px;" name="key_search" id="key_search" class="enter-type" placeholder="Nhập từ khóa">
            <input type="text" name="to_price" id="to_price" class="enter-price" placeholder="Giá từ"><span class="fl" style="padding-right:5px">-</span>
            <input type="text" name="from_price" id="from_price" class="enter-price" placeholder="Giá đến">
            <input type="submit" value="" class="btns">
        </form>
    </div>
</div>
<!--begin list pro -->
<div class="boxModule">
    <div class="boxmodule-cont2">
        <i class="icon-notice"></i><b>Tìm thấy <?php echo count($products); ?> sản phẩm.</b>
    </div>
    <!--end list pro -->
</div>

<!--Result-->
<div class="boxModule">
    <div class="box-title">
        <h3><span><?php echo $title; ?></span></h3>
    </div>
    <!-- End Orange Title -->
    <div class="boxmodule-cont no-padd">
        <ul class="listItem-row clearfix">
            <?php
            foreach($products as $product)
            {
                ?>
                <li style="width:25%">
                    <a href="<?php echo Link::build('product/detail', $product, 'product_id'); ?>"><img alt="Ảnh sản phẩm" src="<?php echo $product['url_images']; ?>"/></a>
                    <h4><a href="<?php echo Link::build('product/detail', $product, 'product_id'); ?>"><?php echo $product['name']; ?></a></h4>
                    <p class="Gía sản phẩm"><?php echo $product['price'];?> VND</p>
                    <a  href="<?php echo Link::build('cart/add', $product, 'product_id'); ?>" class="theme-btt bttm8"><span><i class="icon-buynow">Mua ngay</i></span></a><br>
                </li>
                <?php
            }
            ?>
        </ul>

        <?php echo Html::paginate($page, $perPage, 115, 'product/list', array('con1' => 'test', 'con2' => 'blah'));
        ?>
    </div>
    <!-- End BoxModule Content -->
</div>